package qq2564874169.tuaotuao.fx.orm.mybatis;


import qq2564874169.tuaotuao.fx.orm.Sql;
import qq2564874169.tuaotuao.fx.orm.SqlParam;

public interface MybatisSql extends Sql, MybatisQuery {
    int stmtExecute(SqlParam param);

    default int stmtExecute(String statement) {
        return stmtExecute(statement, null);
    }

    default int stmtExecute(String statement, Object param) {
        SqlParam sp = SqlParam.createFor(statement, param, false);
        return stmtExecute(sp);
    }
}
